#ifndef _BONE_SET_H_
#define _BONE_SET_H_
#include "Ogre.h"
#include "SpiderManager.h"


using namespace Ogre;
class SpiderManager;
class BoneSet
{
public:
	
	static float timer;
	float currentTimer;
	float airAngle;
	BoneSet(SpiderBones spiderBones, Vector3 offset, float timeOffset);
	~BoneSet(void);
	float const		TIME_OFFSET;
	const Vector3	OFFSET;			//START POSITION OF BONE
	

	Bone*		b1;
	Bone*		b2;
	Bone*		b3;

	Vector3		goalPosition;		//goal where the bones should look like
	
	void update(float deltaTime);
	
	Vector3 wp(SceneNode* _node, Bone* _bone);
	bool solveIK();

private:
	SpiderManager*	_spiderManager;
};
#endif